package org.dromara.bean.domain.bo;

import org.dromara.bean.domain.HisRegistration;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 挂号记录业务对象 his_registration
 *
 * @author Lion Li
 * @date 2024-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HisRegistration.class, reverseConvertGenerate = false)
public class HisRegistrationBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
//    @NotNull(message = "会员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;


    /**
     * 医生id
     */
    private Long doctorId;


    /**
     * 就诊人姓名
     */
    private String patientName;

    /**
     * 就诊卡id
     */
    private Long patientId;

    /**
     * 就诊日期
     */

    private LocalDate registrationTime;

    /**
     * 总金额
     */
    private BigDecimal totalPrice;



    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 状态
     */
    private Long status;

    /**
     * 订单号
     */
    private String  orderNumber;

    private String remark;
    /**
     * 手机号
     */
    private String phone;
}
